# # 继承
# class Animal(object):
#     def __init__(self,name):
#         self.name = name
#         self.type = type
#     def eat(self):
#         print("吃")
#     def drink(self):
#         print("喝")
#     def defecate(self):
#         print("拉")
#     def pee(self):
#         print("撒")
# class Dog(Animal):
#     def __init__(self,name,age):
#         super().__init__(name)
#         self.age = age
#     def fidelity(self):
#         print("忠诚")
# class Cat(Animal):
#     def __init__(self,name):
#         super().__init__(name)
#     def silly(self,fool):
#         self.fool = fool
#         print(f"愚蠢的{self.fool}")
# class beasts(Dog,Cat):
#     pass
#     # def silly(self,fool):
#     #     self.fool = fool
#     #     print(f"愚蠢{self.fool}")
# xiaohei = Dog("大黄",100)
# xiaohei.eat()
# xiaohei.drink()
# xiaohei.fidelity()
# xiaobai = Cat("驴得水")
# xiaobai.silly("傻子")
# dongwu = Animal("大黄")
# dongwu.pee()
# shou = beasts("大萝卜",23)
# shou.silly("大强")
